package com.itheima.demo.runnable;

public class Test02 {//sleep方法测试
    public static void main(String[] args){
        System.out.println("睡觉了");
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("睡醒了");
    }
}
